package de.se2.sharebox.classes;

/**
 *
 * @author Gruppe 10
 *
 */
public class SystemDataType
{
	private boolean busy;
	private String name;
	private UserAccount owner;

	/**
	 * Konstruktor
	 *
	 * @param name -
	 *          Name
	 * @param owner -
	 *          Besitzer
	 */
	public SystemDataType(String name, UserAccount owner)
	{
		this.setBusy(false);
		this.setName(name);
		this.setOwner(owner);
	}

	public boolean getBusy()
	{
		return busy;
	}

	public void setBusy(boolean busy)
	{
		this.busy = busy;
	}

	public boolean delete()
	{
		Log.getInstance().addEntry("SystemDataType", "Deleting " + getName());
		return true;
	}

	public void showProperties()
	{

	}

	public boolean copy()
	{
		Log.getInstance().addEntry("SystemDataType", "Copying " + getName());
		return true;
	}

	public boolean cut()
	{
		Log.getInstance().addEntry("SystemDataType", "cutting " + getName());
		return true;
	}

	public boolean insert()
	{
		Log.getInstance().addEntry("SystemDataType", "Inserting " + getName());
		return true;
	}

	public void setName(String name)
	{
		Log.getInstance().addEntry("SystemDataType", "Setting name of file " + getName());
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public void setOwner(UserAccount owner)
	{
		Log.getInstance().addEntry("SystemDataType", "Setting owner of file " + getName());
		this.owner = owner;
	}

	public UserAccount getOwner()
	{
		return owner;
	}
}
